package com.tiger.contact;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;

public class LoginActivity extends Activity{
	private EditText userphone,userpwd;
	private Button login,reset;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		this.requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.login);
		
		userphone=(EditText)this.findViewById(R.id.userphone);
		userpwd=(EditText)this.findViewById(R.id.userpwd);
		login=(Button)this.findViewById(R.id.login);
		reset=(Button)this.findViewById(R.id.reset);
		reset.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View arg0) {
				userpwd.setText("");
				userphone.setText("");
			}
			
		});
		login.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				LoginActivity.this.startActivity(new Intent(LoginActivity.this,MainActivity.class));
			}
			
		});
	}

}
